import request from '../../../utils/request.js'

// 新增
export const deptAdd = (data) => {
    return request({
        url: '/dept/add',
        method: 'POST',
        data,
    })
}

// 编辑
export const deptUpdate = (data) => {
    return request({
        url: '/dept/update',
        method: 'POST',
        data,
    })
}

// 删除
export const deptDelete = (data) => {
    return request({
        url: '/dept/delete',
        method: 'POST',
        data,
    })
}

// 列表
export const deptList = (params) => {
    return request({
        url: '/dept/list',
        method: 'GET',
        params,
    })
}

// 所有部门列表
export const deptAllList = () => {
    return request({
        url: '/dept/allList',
        method: 'GET',
    })
}
